
//
//  AppDelegate+LF.m
//  AntFarms
//
//  Created by LF on 2017/5/6.
//  Copyright © 2017年 GG. All rights reserved.
//

#import "AppDelegate+LF.h"
#import "ViewController.h"

#import "LFTabBarController.h"

@interface AppDelegate ()

@end


@implementation AppDelegate (LF)


// 设置根视图控制器
- (void) setupRootVc {
    
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    
    self.window.backgroundColor = [UIColor whiteColor];
    
    [self.window makeKeyAndVisible];
    
    
    LFTabBarController *tab = [[LFTabBarController alloc] init];

    //判断是不是第一次启动应用
    if(![[NSUserDefaults standardUserDefaults] boolForKey:@"firstLaunch"]){
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"firstLaunch"];
    }else{
    }
    
    self.window.rootViewController = tab;
}

@end
